<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加报表显示信息</title>
<%@ include file="/app/includes/header.jsp"%>
<script type="text/javascript">
	function addReportView(){
			$('#reportViewForm').submit();
	}
</script>
</head>
<body>
	 <div id="panel" class="easyui-panel" title="添加用户信息"
		icon="icon-add-form" collapsible="true"
		style="padding: 10px;">
		<form id="reportViewForm" name="userForm" action="<%=request.getContextPath()%>/auth/report/addReportView.action" method="post" class="saturn_colfrom">
			<table class="table-form">
			<tr>
				<td>
					标识:
				</td>
				<td>
					<input id="id" name="id"  type="text"></input>
				</td>
				<td >
					<div id="idTip"></div>
				</td>
			</tr>
			<tr>
				<td>
					名称:
				</td>
				<td>
					<input id="name" name="name" type="text"></input>
				</td>
				<td>
					<div id="nameTip"></div>
				</td>
			</tr>
			<tr>
				<td>
					标题:
				</td>
				<td>
					<input id="title" name="title" type="text"></input>
				</td>
				<td>
					<div id="titleTip" ></div>
				</td>
			</tr>
			<tr>
				<td>
					数据标识:
				</td>
				<td>
					<input id="dataId" name="dataId" type="text"></input>
				</td>
				<td>
					<div id="dataIdTip" ></div>
				</td>
			</tr>
			<tr>
				<td>
					列名:
				</td>
				<td>
					<input id="col" name="col" type="text"></input>
				</td>
				<td>
					<div id="colTip" ></div>
				</td>
			</tr>
			<tr>
				<td>
					行名:
				</td>
				<td>
					<input id="row" name="row" type="text"></input>
				</td>
				<td>
					<div id="rowTip" ></div>
				</td>
			</tr>
			<tr>
				<td>
					报表:
				</td>
				<td>
					<input id="chart" name="chart" type="text"></input>
				</td>
				<td>
					<div id="chartTip" ></div>
				</td>
			</tr>
			<tr>
				<td>
					报表:
				</td>
				<td>
					<input id="path" name="path" type="text"></input>
				</td>
				<td>
					<div id="pathTip" ></div>
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<div style="padding: 10px;" >
						<a href="#" onclick="addReportView()" class="easyui-linkbutton" iconCls="icon-add">添加</a>
						<a href="javascript:history.back(-1)" class="easyui-linkbutton"  iconCls="icon-cancel">取消</a>
					</div>
				</td>
			</tr>
			</table>
		</form>
	</div> 
</body>
	<script type="text/javascript">
		$(document).ready(function(){
		$.formValidator.initConfig({formid:"reportViewForm"});
		$("#id").formValidator({
			onshow:"请输入标识",
			onfocus:"请正确填写名称，例如：数字，字母，小数点的组合",
			oncorrect:"正确"})
			.regexValidator({regexp:"resourceName",datatype:"enum",onerror:"请正确填写名称，例如：数字，字母，小数点的组合"});
		$("#name").formValidator({
			onshow:"名称",
			onfocus:"请正确填写名称，例如：价格",
			oncorrect:"正确"})
			.inputValidator({min:1,onerror:"名称不能为空！"});
		$("#title").formValidator({
			onshow:"请输入标题",
			onfocus:"请正确填写标题，例如：***",
			oncorrect:"正确"})
			.inputValidator({min:1,onerror:"标题不能为空！"});
		$("#dataId").formValidator({
			onshow:"请输入标识",
			onfocus:"标识为正整数，例如：11",
			oncorrect:"正确"})
			.regexValidator({regexp:"intege1",datatype:"enum",onerror:"请输入正整数"});
		$("#col").formValidator({
			onshow:"请输入列名",
			onfocus:"请正确填写列名，例如：列名",
			oncorrect:"正确"})
			.inputValidator({min:1,onerror:"列名不能为空！"});
		$("#row").formValidator({
			onshow:"请输入行名",
			onfocus:"请正确填写行名，例如：行名",
			oncorrect:"正确"})
			.inputValidator({min:1,onerror:"行名不能为空！"});
		$("#chart").formValidator({
			onshow:"请输入报表",
			onfocus:"请正确填写报表，例如：报表",
			oncorrect:"正确"})
			.inputValidator({min:1,onerror:"报表不能为空！"});
		});
	</script>
</html>